#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from os.path import abspath, join, dirname
from os import getcwd, chdir
from app import CrossMatesApp

if __name__ == "__main__":
    if "__file__" in globals():
        # Correct file path
        script_path = abspath(dirname(__file__))
        if script_path != abspath(getcwd()):
            chdir(script_path)
        
    app = CrossMatesApp(sys.argv)
    sys.exit(app.exec_())
    